package com.base.web.socket.entity;

import java.io.Serializable;

/**
 * 消息记录-储存到redis
 * @author tcq
 * @date 2019年6月12日 下午3:27:18
 */
public class ChatMessage implements Serializable{
	
	private static final long serialVersionUID = -7137075159018246436L;

	private String friendId;

	private String friendName;

	private String content;

	private String createrTime;
	
	private Integer type; //消息类型：1-发送的消息;2-接收的消息
	
	public ChatMessage() {
		super();
	}

	public ChatMessage(String content) {
		this.content = content;
	}
	
	public ChatMessage(String friendId, String friendName, String content) {
		this.friendId = friendId;
		this.friendName = friendName;
		this.content = content;
	}
	
	public String getFriendId() {
		return friendId;
	}

	public void setFriendId(String friendId) {
		this.friendId = friendId;
	}

	public String getFriendName() {
		return friendName;
	}

	public void setFriendName(String friendName) {
		this.friendName = friendName;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCreaterTime() {
		return createrTime;
	}

	public void setCreaterTime(String createrTime) {
		this.createrTime = createrTime;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
}
